package com.atguigu.param;

import lombok.Data;

@Data
public class ProductSearchParam {

    private String search;

    private Integer currentPage=1;

    private Integer pageSize=15;

    public int getFrom(){ // 获取偏移量
        return (currentPage-1)*pageSize;
    }

    public int getSize(){ // 获取页大小
        return pageSize;
    }
}
